package com.bocai.utils;

/**
 * Created by tu_pei on 17/5/27.
 */
public class ResponseData {
    /**
     *
     */
    @SuppressWarnings("unused")
	private static final long serialVersionUID = 8059551920157401674L;
    private String code;

    private String msg;

    private Object results;

    public String getCode() {
        return code;
    }

    private void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    private void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getResults() {
        return results;
    }

    public void setResults(Object results) {
        this.results = results;
    }
    public ResponseData() {
        super();
        this.code = CodeEnum.SUCCESS.getCode();
        this.msg = CodeEnum.SUCCESS.getMessage();
    }
    public int setCodeEnum(CodeEnum codeEnum){
        setCode(codeEnum.getCode());
        setMsg(codeEnum.getMessage());
        return 0;
    }
}
